/*
 * Copyright (c) 2020. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

package org.jeecg.modules.gzgl.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.zhaodui.fxy.*;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.util.RedisUtil;
import org.jeecg.modules.gzgl.entity.FxyGzgl02;
import org.jeecg.modules.gzgl.entity.FxyGzgl03;
import org.jeecg.modules.gzgl.entity.FxyGzgl04;
import org.jeecg.modules.gzgl.entity.FxyGzgl05;
import org.jeecg.modules.gzgl.service.IFxyGzgl02Service;
import org.jeecg.modules.gzgl.service.IFxyGzgl03Service;
import org.jeecg.modules.gzgl.service.IFxyGzgl04Service;
import org.jeecg.modules.gzgl.service.IFxyGzgl05Service;
import org.jeecg.modules.gzgl.vo.FxjGzgl01PageBatch;
import org.jeecg.modules.gzgl.vo.FxyGzgl04Page;
import org.jeecg.modules.system.service.impl.SysDataLogServiceImpl;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @Description: 公证相关人员合同主表
 * @Author: zhaodui
 * @Date: 2020-02-06
 * @Version: V1.0
 */
@RestController
@RequestMapping("/gzgl/fxyGzgl04")
@Slf4j
public class FxyGzgl04Controller extends JeecgController<FxyGzgl04, IFxyGzgl04Service> {
    @Autowired
    private IFxyGzgl04Service fxyGzgl04Service;
    @Autowired
    private RedisUtil redisUtil;
    @Autowired
    private SysDataLogServiceImpl sysDataLogService;
    @Autowired
    private IFxyGzgl02Service fxyGzgl02Service;
    @Autowired
    private IFxyGzgl03Service fxyGzgl03Service;
    @Autowired
    private IFxyGzgl05Service fxyGzgl05Service;
    @Value(value = "${jeecg.path.upload}")
    private String uploadpath;
    @Value(value = "${baseorg.common.appcode}")
    private String appcode;
    /**
     * 分页列表查询
     *
     * @param fxyGzgl04
     * @param pageNo
     * @param pageSize
     * @param req
     * @return
     */
    @GetMapping(value = "/list")
    public Result<?> queryPageList(FxyGzgl04 fxyGzgl04,
                                   @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
                                   @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
                                   HttpServletRequest req) {
        QueryWrapper<FxyGzgl04> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl04, req.getParameterMap());
        Page<FxyGzgl04> page = new Page<FxyGzgl04>(pageNo, pageSize);
        IPage<FxyGzgl04> pageList = fxyGzgl04Service.page(page, queryWrapper);
        return Result.ok(pageList);
    }


    public List<FxyGzgl02> get02by0708(String query07, String query08) {
        FxyGzgl02 fxyGzgl02 = new FxyGzgl02();
        fxyGzgl02.setQuery07(query07);
        fxyGzgl02.setQuery08(query08);
        QueryWrapper<FxyGzgl02> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl02, null);
        return fxyGzgl02Service.list(queryWrapper);
    }

    public List<FxyGzgl02> get02by20(String query20 ) {
        FxyGzgl02 fxyGzgl02 = new FxyGzgl02();
        fxyGzgl02.setQuery20(query20);
         QueryWrapper<FxyGzgl02> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl02, null);
        return fxyGzgl02Service.list(queryWrapper);
    }
    public List<FxyGzgl03> get03by0708(String query07, String query08) {
        FxyGzgl03 fxyGzgl03 = new FxyGzgl03();
        fxyGzgl03.setQuery07(query07);
        fxyGzgl03.setQuery08(query08);
        QueryWrapper<FxyGzgl03> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl03, null);
        return fxyGzgl03Service.list(queryWrapper);
    }
    public List<FxyGzgl03> get03by24(String query24) {
        FxyGzgl03 fxyGzgl03 = new FxyGzgl03();
        fxyGzgl03.setQuery24(query24);
         QueryWrapper<FxyGzgl03> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl03, null);
        return fxyGzgl03Service.list(queryWrapper);
    }
    public List<FxyGzgl04> get04by07(String query07) {
        FxyGzgl04 fxyGzgl04 = new FxyGzgl04();
        fxyGzgl04.setQuery07(query07);
        QueryWrapper<FxyGzgl04> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl04, null);
        return fxyGzgl04Service.list(queryWrapper);
    }
    public List<FxyGzgl05> get05by0708(String query07, String query08) {
        FxyGzgl05 fxyGzgl05 = new FxyGzgl05();
        fxyGzgl05.setQuery07(query07);
        fxyGzgl05.setQuery08(query08);
        QueryWrapper<FxyGzgl05> queryWrapper = QueryGenerator.initQueryWrapper(fxyGzgl05, null);
        return fxyGzgl05Service.list(queryWrapper);
    }
    /**
     * 添加
     *
     * @param fxyGzgl04Page
     * @return
     */
    @PostMapping(value = "/add")
    public Result<?> add(@RequestBody FxyGzgl04Page fxyGzgl04Page) {
        FxyGzgl04 fxyGzgl04 = new FxyGzgl04();
        BeanUtils.copyProperties(fxyGzgl04Page, fxyGzgl04);
        if (StringUtil.isEmpty(fxyGzgl04.getQuery39())||fxjConstant.iscommitfxy.equals(fxyGzgl04Page.getQuery39())) {//不提交法信
            fxyGzgl04Service.save(fxyGzgl04);
            return Result.ok("添加成功！");
        }
        try {
            String appCode = fxyGzgl04Page.getQuery01();
            fxyUser fxyUser = new fxyUser();
            List<FxyGzgl05> fxyGzgl05List = fxyGzgl04Page.getFxyGzgl05List();
            List<FxyGzgl02> fxyGzgl02List = fxyGzgl04Page.getFxyGzgl02List();
            List<FxyGzgl03> fxyGzgl03List = fxyGzgl04Page.getFxyGzgl03List();
            //如果数据为空则从系统获取
            if(fxyGzgl02List==null||fxyGzgl02List.size()==0){
                fxyGzgl02List = get02by0708(fxyGzgl04Page.getQuery07(),fxyGzgl04Page.getQuery08());
            }
            if(fxyGzgl03List==null||fxyGzgl03List.size()==0){
                fxyGzgl03List = get03by0708(fxyGzgl04Page.getQuery07(),fxyGzgl04Page.getQuery08());
            }
            if(fxyGzgl05List==null||fxyGzgl05List.size()==0){
                fxyGzgl05List = get05by0708(fxyGzgl04Page.getQuery07(),fxyGzgl04Page.getQuery08());
            }

            fxyUser.setCaseNumber(fxyGzgl04Page.getQuery16());
            fxyUser.setUserId(fxyGzgl04Page.getQuery14());
            fxyUser.setOrgId(fxyGzgl04Page.getQuery20());
            fxyUser.setBusinessType(fxyGzgl04Page.getQuery21());
            fxyUser.setProcessNumber(fxyGzgl04Page.getQuery15());
            fxyUser.setSendAgreement(fxyGzgl04Page.getQuery19());
            fxyUser.setAgreementCode(fxyGzgl04Page.getQuery22());
            fxyUser.setTemplateCode(fxyGzgl04Page.getQuery23());
            fxyUser.setAgreementName(fxyGzgl04Page.getQuery24());
            List<conmap> conmapList = new ArrayList<conmap>();
            if(fxyGzgl05List!=null&&fxyGzgl05List.size()>0) {
                for (FxyGzgl05 t : fxyGzgl05List) {
                    conmap con = new conmap();
                    con.setConKey(t.getQuery15());
                    con.setConValue(t.getQuery17());
                    conmapList.add(con);
                }
            }
            fxyUser.setConmapList(conmapList);
            String userids = "";
            String signs = "";
                if(fxyGzgl02List!=null&&fxyGzgl02List.size()>0) {

                    for (FxyGzgl02 t2 : fxyGzgl02List) {
                        userids = userids + t2.getQuery20() + ",";
                        signs = signs + t2.getQuery13() + ",";
                    }
                }
                if(fxyGzgl03List!=null&&fxyGzgl03List.size()>0) {

                    for (FxyGzgl03 t3 : fxyGzgl03List) {
                        userids = userids + t3.getQuery24() + ",";
                        signs = signs + t3.getQuery12() + ",";
                    }
                }
            fxyUser.setUserIds(userids);
            fxyUser.setSignatorys(signs);
            agreementres res = fxyUtil.addAgreementByProcessNumberreturnobject(appCode, redisUtil, fxyUser);
            if (!StringUtil.isEmpty(res.getResultCode())) {
                fxyGzgl04.setQuery16(res.getResultData().getCaseNumber());//案件编号
                fxyGzgl04.setQuery17(res.getResultData().getWritInfos().getWritNumber());//批次编号
                fxyGzgl04.setQuery18(res.getResultData().getWritInfos().getAgreementInfos().get(0).getStorageNo());//存证编号

            }
        } catch (BaseBusinessException e) {
            return Result.error(e.getMessage());
        }

        fxyGzgl04Service.save(fxyGzgl04);
        Gson gs = new GsonBuilder().serializeNulls().create();
        String datacont = gs.toJson(fxyGzgl04);
        String id = fxyGzgl04.getId();
        sysDataLogService.addDataLog("fxy_gzgl_04", id, datacont);
        return Result.ok("添加成功！");
    }

    /**
     * 编辑
     *
     * @param fxyGzgl04Page
     * @return
     */
    @PutMapping(value = "/edit")
    public Result<?> edit(@RequestBody FxyGzgl04Page fxyGzgl04Page) {
        FxyGzgl04 fxyGzgl04 = new FxyGzgl04();
        BeanUtils.copyProperties(fxyGzgl04Page, fxyGzgl04);
        if (StringUtil.isEmpty(fxyGzgl04.getQuery39())||fxjConstant.iscommitfxy.equals(fxyGzgl04Page.getQuery39())) {//不提交法信
            fxyGzgl04Service.updateById(fxyGzgl04);
            return Result.ok("编辑成功!");
        }
//        try {
//            String appCode = fxyGzgl04Page.getQuery01();
            fxyUser fxyUser = new fxyUser();

              //上传文件

        String fileidfm ="";





        if(StringUtil.isNotEmpty(fxyGzgl04.getQuery25())&&StringUtil.isNotEmpty(fxyGzgl04.getQuery14())&&StringUtil.isEmpty(fxyGzgl04.getQuery26())){
            try{
                fileidfm = upload("合同补充",fxyGzgl04.getQuery25(),"11","11",fxyGzgl04.getQuery14());
                fxyGzgl04.setQuery26(fileidfm);
            }catch (Exception e){
            }

        }
        if(StringUtil.isNotEmpty(fxyGzgl04.getQuery25())&&StringUtil.isNotEmpty(fxyGzgl04.getQuery14())&&StringUtil.isNotEmpty(fxyGzgl04.getQuery26())&&StringUtil.isEmpty(fxyGzgl04.getQuery27())){
            try{
                 fxyUser fxysup  = new fxyUser();
                fxysup.setUserId(fxyGzgl04.getQuery14());
                fxysup.setAgreementCode(fxyGzgl04.getQuery22());
                fxysup.setFileIds(fxyGzgl04.getQuery26());
                String res =  fxyUtil.uploadAgreementAttachment(appcode,redisUtil,fxysup);
                if(StringUtil.strPos(res,"E00000")){
                    fxyGzgl04.setQuery27("请求成功");
                }

            }catch (BaseBusinessException e){
                return Result.error(e.getMessage());

            }
        }




        // fileid
             // 上传为合同附件
//              uploadAgreementAttachment
//            List<FxyGzgl05> fxyGzgl05List = fxyGzgl04Page.getFxyGzgl05List();
//            List<FxyGzgl02> fxyGzgl02List = fxyGzgl04Page.getFxyGzgl02List();
//            List<FxyGzgl03> fxyGzgl03List = fxyGzgl04Page.getFxyGzgl03List();
//            //如果数据为空则从系统获取
//            //如果数据为空则从系统获取
//            if(fxyGzgl02List==null||fxyGzgl02List.size()==0){
//                fxyGzgl02List = get02by0708(fxyGzgl04Page.getQuery07(),fxyGzgl04Page.getQuery08());
//            }
//            if(fxyGzgl03List==null||fxyGzgl03List.size()==0){
//                fxyGzgl03List = get03by0708(fxyGzgl04Page.getQuery07(),fxyGzgl04Page.getQuery08());
//            }
//            if(fxyGzgl05List==null||fxyGzgl05List.size()==0){
//                fxyGzgl05List = get05by0708(fxyGzgl04Page.getQuery07(),fxyGzgl04Page.getQuery08());
//            }
//
//            fxyUser.setCaseNumber(fxyGzgl04Page.getQuery16());
//            fxyUser.setUserId(fxyGzgl04Page.getQuery14());
//            fxyUser.setOrgId(fxyGzgl04Page.getQuery20());
//            fxyUser.setBusinessType(fxyGzgl04Page.getQuery21());
//            fxyUser.setProcessNumber(fxyGzgl04Page.getQuery15());
//            fxyUser.setSendAgreement(fxyGzgl04Page.getQuery19());
//            fxyUser.setAgreementCode(fxyGzgl04Page.getQuery22());
//            fxyUser.setTemplateCode(fxyGzgl04Page.getQuery23());
//            fxyUser.setAgreementName(fxyGzgl04Page.getQuery24());
//            List<conmap> conmapList = new ArrayList<conmap>();
//            if(fxyGzgl05List!=null&&fxyGzgl05List.size()>0){
//                for (FxyGzgl05 t : fxyGzgl05List) {
//                    conmap con = new conmap();
//                    con.setConKey(t.getQuery15());
//                    con.setConValue(t.getQuery17());
//                    conmapList.add(con);
//                }
//            }
//
//            fxyUser.setConmapList(conmapList);
//            String userids = "";
//            String signs = "";
//            if(fxyGzgl02List!=null&&fxyGzgl02List.size()>0){
//                for (FxyGzgl02 t2 : fxyGzgl02List) {
//                    userids = userids + t2.getQuery20() + ",";
//                    signs = signs + t2.getQuery13() + ",";
//                }
//            }
//
//            if(fxyGzgl03List!=null&&fxyGzgl03List.size()>0){
//                for (FxyGzgl03 t3 : fxyGzgl03List) {
//                    userids = userids + t3.getQuery24() + ",";
//                    signs = signs + t3.getQuery12() + ",";
//                }
//            }
//
//            fxyUser.setUserIds(userids);
//            fxyUser.setSignatorys(signs);
//            agreementres res = fxyUtil.addAgreementByProcessNumberreturnobject(appCode, redisUtil, fxyUser);
//            if (!StringUtil.isEmpty(res.getResultCode())) {
//                fxyGzgl04.setQuery16(res.getResultData().getCaseNumber());//案件编号
//                fxyGzgl04.setQuery17(res.getResultData().getWritInfos().getWritNumber());//批次编号
//                fxyGzgl04.setQuery18(res.getResultData().getWritInfos().getAgreementInfos().get(0).getStorageNo());//存证编号
//
//            }
//        } catch (BaseBusinessException e) {
//            fxyGzgl04.setQuery38(e.getMessage());
//            fxyGzgl04Service.updateById(fxyGzgl04);
//            return Result.error(e.getMessage());
//        }
        fxyGzgl04Service.updateById(fxyGzgl04);
        Gson gs = new GsonBuilder().serializeNulls().create();
        String datacont = gs.toJson(fxyGzgl04);
        String id = fxyGzgl04.getId();
        sysDataLogService.addDataLog("fxy_gzgl_04", id, datacont);
        return Result.ok("编辑成功!");
    }


    public String upload(String fileName,String filepath,String filefrom ,String filetype ,String userid){
        String res = "";
        String ctxPath = uploadpath;
        String savePath = uploadpath + File.separator+ filepath;
        try{
            String appCode = appcode;
            fxyUser fxyUser = new fxyUser();
            fxyUser.setFileUrl(savePath);
            fxyUser.setUserId(userid);
            fxyUser.setFileName(fileName);
            fxyUser.setFileType(filetype);;
            fxyUser.setFrom(filefrom);

            File filein = new File(savePath);
            res = fxyUtil.uploadFileweb(appCode,redisUtil,fxyUser,filein);
        }catch (BaseBusinessException e){


        }

        return  res;
    }

    /**
     * 编辑
     *
     * @param fxyGzgl04Page
     * @return
     */
    @PutMapping(value = "/editbatch")
    public Result<?> editbatch(@RequestBody FxjGzgl01PageBatch fxyGzgl04Page) {
        FxyGzgl04 fxyGzgl04 = new FxyGzgl04();
        BeanUtils.copyProperties(fxyGzgl04Page, fxyGzgl04);
        try {
            String appCode = fxyGzgl04Page.getQuery01();
            fxyUser fxyUser = new fxyUser();

            fxyUser.setCaseNumber(fxyGzgl04Page.getQuery16());
            fxyUser.setUserId(fxyGzgl04Page.getQuery14());
            fxyUser.setOrgId(fxyGzgl04Page.getQuery20());
            fxyUser.setBusinessType(fxyGzgl04Page.getQuery21());
            fxyUser.setProcessNumber(fxyGzgl04Page.getQuery15());
            fxyUser.setSendAgreement(fxyGzgl04Page.getQuery19());

            List<fxyUser> fxyUserList = new ArrayList<>();
            List<FxyGzgl04Page> FxyGzgl04PageList = fxyGzgl04Page.getFxyGzgl04PageList();
            for (FxyGzgl04Page tp : FxyGzgl04PageList) {
                fxyUser fxy = new fxyUser();
                fxy.setAgreementCode(tp.getQuery22());
                fxy.setTemplateCode(tp.getQuery23());
                fxy.setAgreementName(tp.getQuery24());
                List<FxyGzgl05> fxyGzgl05List = tp.getFxyGzgl05List();
                List<FxyGzgl02> fxyGzgl02List = tp.getFxyGzgl02List();
                List<FxyGzgl03> fxyGzgl03List = tp.getFxyGzgl03List();
                //如果数据为空则从系统获取
                //如果数据为空则从系统获取
                if(fxyGzgl02List==null||fxyGzgl02List.size()==0){
                    fxyGzgl02List = get02by0708(tp.getQuery07(),tp.getQuery08());
                }
                if(fxyGzgl03List==null||fxyGzgl03List.size()==0){
                    fxyGzgl03List = get03by0708(tp.getQuery07(),tp.getQuery08());
                }
                if(fxyGzgl05List==null||fxyGzgl05List.size()==0){
                    fxyGzgl05List = get05by0708(tp.getQuery07(),tp.getQuery08());
                }
                List<conmap> conmapList = new ArrayList<conmap>();
                if(fxyGzgl05List!=null||fxyGzgl05List.size()>0) {

                    for (FxyGzgl05 t : fxyGzgl05List) {
                        conmap con = new conmap();
                        con.setConKey(t.getQuery15());
                        con.setConValue(t.getQuery17());
                        conmapList.add(con);
                    }
                }
                fxy.setConmapList(conmapList);
                String userids = "";
                String signs = "";
                if(fxyGzgl02List!=null||fxyGzgl02List.size()>0) {

                    for (FxyGzgl02 t2 : fxyGzgl02List) {
                        userids = userids + t2.getQuery20() + ",";
                        signs = signs + t2.getQuery13() + ",";
                    }
                }
                if(fxyGzgl03List!=null||fxyGzgl03List.size()>0) {

                    for (FxyGzgl03 t3 : fxyGzgl03List) {
                        userids = userids + t3.getQuery24() + ",";
                        signs = signs + t3.getQuery12() + ",";
                    }
                }
                fxy.setUserIds(userids);
                fxy.setSignatorys(signs);
                fxyUserList.add(fxy);
            }

            agreementres res = fxyUtil.addAgreementByProcessNumberreturnobjectbatch(appCode, redisUtil, fxyUser, fxyUserList);
            if (!StringUtil.isEmpty(res.getResultCode())) {
                fxyGzgl04.setQuery16(res.getResultData().getCaseNumber());//案件编号
                fxyGzgl04.setQuery17(res.getResultData().getWritInfos().getWritNumber());//批次编号
//                fxyGzgl04.setQuery18(res.getResultData().getWritInfos().getAgreementInfos().get(0).getStorageNo());//存证编号
                List<agreementres.ResultDataBean.WritInfosBean.AgreementInfosBean> writInfos = res.getResultData().getWritInfos().getAgreementInfos();
                for (FxyGzgl04Page tpsave : FxyGzgl04PageList) {
                    FxyGzgl04 fxyGzgl04save = new FxyGzgl04();
                    BeanUtils.copyProperties(tpsave, fxyGzgl04save);
                    fxyGzgl04save.setQuery16(fxyGzgl04.getQuery16());//案件编号
                    fxyGzgl04save.setQuery17(res.getResultData().getWritInfos().getWritNumber());//案件编号
                    String wsbh = fxyGzgl04save.getQuery22();//文书编号
                    for (agreementres.ResultDataBean.WritInfosBean.AgreementInfosBean ta : writInfos) {
                        if (ta.getAgreementCode().equals(wsbh)) {
                            fxyGzgl04save.setQuery18(ta.getStorageNo());//存证编号
                        }
                    }
                    fxyGzgl04Service.updateById(fxyGzgl04save);
                }
            }
        } catch (BaseBusinessException e) {
            return Result.error(e.getMessage());
        }
        return Result.ok("编辑成功!");
    }


    /**
     * 通过id删除
     *
     * @param id
     * @return
     */
    @DeleteMapping(value = "/delete")
    public Result<?> delete(@RequestParam(name = "id", required = true) String id) {
        fxyGzgl04Service.removeById(id);
        return Result.ok("删除成功!");
    }

    /**
     * 批量删除
     *
     * @param ids
     * @return
     */
    @DeleteMapping(value = "/deleteBatch")
    public Result<?> deleteBatch(@RequestParam(name = "ids", required = true) String ids) {
        this.fxyGzgl04Service.removeByIds(Arrays.asList(ids.split(",")));
        return Result.ok("批量删除成功!");
    }

    /**
     * 通过id查询
     *
     * @param id
     * @return
     */
    @GetMapping(value = "/queryById")
    public Result<?> queryById(@RequestParam(name = "id", required = true) String id) {
        FxyGzgl04 fxyGzgl04 = fxyGzgl04Service.getById(id);
        if (fxyGzgl04 == null) {
            return Result.error("未找到对应数据");
        }
        return Result.ok(fxyGzgl04);
    }

    /**
     * 导出excel
     *
     * @param request
     * @param fxyGzgl04
     */
    @RequestMapping(value = "/exportXls")
    public ModelAndView exportXls(HttpServletRequest request, FxyGzgl04 fxyGzgl04) {
        return super.exportXls(request, fxyGzgl04, FxyGzgl04.class, "公证相关人员合同主表");
    }

    /**
     * 通过excel导入数据
     *
     * @param request
     * @param response
     * @return
     */
    @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
    public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
        return super.importExcel(request, response, FxyGzgl04.class);
    }

}
